from django.contrib import admin
from real_estate.models import Property

__author__ = 'leroy'

class PropertyAdmin(admin.ModelAdmin):
    list_display = ('street', 'street_number','type')
    list_display_links = ('street',)
    ordering = ['street', 'type']
    prepopulated_fields = {'slug':('street','street_number'),
                           'tags':('street', 'street_number')}

admin.site.register(Property, PropertyAdmin)

  